package com.gy.entity.research;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("result_materia_history")
@ApiModel("材料历史表")
public class MaterialHistory {

    @ApiModelProperty("唯一标识符")
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    @ApiModelProperty("PDF URL")
    @TableField("pdf_url")
    private String pdfUrl;

    @ApiModelProperty("标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("创建时间")
    @TableField("creation_time")
    private Timestamp creationTime;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Long userId;
}
